package com.atguigu.consumer;


import com.atguigu.service.SomeService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class ConsumerRun {
    public static void main(String[] args) throws IOException {
        ApplicationContext ac = new ClassPathXmlApplicationContext("dubbo-consumer.xml");
        SomeService service = (SomeService) ac.getBean("someService");
        service.hello();
        System.in.read();
    }
}
